package com.workerhelping.feiClients;

import com.workerhelping.dto.ESAssistInfoDTO;
import com.workerhelping.elasticsearchEntity.ESAssistVO;
import com.workerhelping.elasticsearchEntity.ESIncomeVO;
import com.workerhelping.elasticsearchEntity.ESRecordVO;
import com.workerhelping.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("ELASTICSEARCH")
public interface ESFeignClient {
    @PostMapping("/ESRecord/insertOrUpdate")
    void insertOrUpdateRecord(@RequestBody ESRecordVO esRecordVO);

    @PostMapping("/ESRecord/delete")
    void deleteRecord(@RequestBody ESRecordVO esRecordVO);

    @PostMapping("/ESIncome/insertIncome")
    Result<String> insertIncome(@RequestBody ESIncomeVO esIncomeVO);

    @PostMapping("/ESAssist/insertAssistBatch")
    Result<String> insertAssistBatch(@RequestBody ESAssistInfoDTO esAssistInfoDTO);
}
